<template>
    <div class="space_release">
        <div class="header">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">空间管理</el-breadcrumb-item>
                <el-breadcrumb-item>空间发布</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <!-- 空间视频 -->
        <div class="upload">
            <div class="up_distance">空间视频：</div>
            <upload :uploadType="'head'" :imgWidth="'85px'" :imgHeight="'104px'" :imgUrl="imgUrl" @upload="getImgUrl"></upload>
        </div>
        <!-- 空间照片 -->
        <div class="upload">
            <div class="up_distance">空间照片：</div>
            <div style="display:flex;">
                <div class="up-litter">
                    <!-- 左 -->
                    <div class="up-left">
                        <upload></upload> 
                        <div class="up-left-title">空间海报</div>
                    </div>
                    <!-- 右 -->
                    <div class="up-notice">图片最佳为600*600像素</div>
                </div>
                <div class="up-litter">
                    <!-- 左 -->
                    <div class="up-left">
                        <upload></upload> 
                        <div class="up-left-title">空间场景</div>
                    </div>
                    <!-- 右 -->
                    <div class="up-notice">
                        <div>支持 jpg 格式，可上传多张图</div>
                        <div>图片尺寸最佳为800*400像素，最多可上传6张</div>
                    </div>
                </div>
            </div>
            <!-- <upload :uploadType="'head'" :imgWidth="'85px'" :imgHeight="'104px'" :imgUrl="imgUrl" @upload="getImgUrl"></upload> -->
        </div>
        <!-- 空间名称 -->
        <div class="upload">
            <div class="up_distance">空间名称：</div>
            <el-input v-model="input" style="width:500px" placeholder="请填写名称"></el-input>
        </div>
        <!-- 空间slogan -->
        <div class="upload">
            <div class="up_distance">空间slogan：</div>
            <el-input v-model="input" style="width:500px" placeholder="请填写名称"></el-input>
        </div>
        <!-- 开放时间、空间大小 -->
        <div style="display:flex;">
            <div class="upload">
                <div class="up_distance">开放时间：</div>
                <el-input v-model="input" style="width:180px" placeholder="请填写名称"></el-input>
            </div>
            <div class="upload">
                <div class="up_distance">空间大小：</div>
                <el-input v-model="input" style="width:290px" placeholder="请填写名称"></el-input>
            </div>
        </div>
        <!-- 空间地址 -->
        <div class="upload">
            <div class="up_distance">空间地址：</div>
            <el-input v-model="input" style="width:386px" placeholder="请填写名称"></el-input>
        </div>
        <!-- 标记活动地点 -->
        <div class="" style="width:386px;height:120px;border:1px solid red;margin:10px 0 40px 30px;">
            <img src="./../../assets/img/location.png" alt="">
        </div>
        <!-- 空间场景 -->
        <div class="upload">
            <div class="up_distance">空间场景：</div>
            <div style="display:flex;text-align:center;">
                <div class="up-left left-distance">
                    <upload></upload> 
                    <div class="topic">沙龙</div>
                </div>
                <div class="up-left left-distance">
                    <upload></upload> 
                    <div class="topic">桌游</div>
                </div>
                 <div class="up-left left-distance">
                    <upload></upload> 
                    <div class="topic">观影</div>
                </div>
                 <div class="up-left left-distance">
                    <upload></upload> 
                    <div class="topic">轰趴</div>
                </div>
                 <div class="up-left left-distance">
                    <upload></upload> 
                    <div class="topic">派对</div>
                </div>
            </div>
        </div>
        <!-- 空间设施 -->
        <div class="upload">
            <div class="up_distance">空间设施：</div>
            <el-input type="textarea" style="width:386px" :rows="8" placeholder="请输入" v-model="textarea"> </el-input>
        </div>
        <!-- 空间服务 -->
        <div class="upload">
            <div class="up_distance">空间服务：</div>
            <el-input type="textarea" style="width:386px" :rows="8" placeholder="请输入" v-model="textarea"> </el-input>
        </div>
        <!-- 空间公约 -->
        <div class="upload">
            <div class="up_distance">空间公约：</div>
            <el-input type="textarea" style="width:386px" :rows="8" placeholder="请输入" v-model="textarea"> </el-input>
        </div>
        <!-- 分割线 -->
        <div style="border:1px solid #F1F1F1;margin:30px;"></div>
        <!-- 按钮组 -->
        <div class="upload up_button">
            <el-button type="primary" round>预览</el-button>
            <el-button type="primary" round>发布</el-button>
            <el-button type="info" round>取消</el-button>
        </div>
    </div>
</template>
<script>
import upload from '@/components/upload/upload'
export default {
    data (){
        return {
            img:'https://mirror-gold-cdn.xitu.io/16943f9b66c21b35716?imageView2/1/w/100/h/100/q/85/format/webp/interlace/1'
        }
    },
    components:{
        upload
    },
     mounted() {
        // 获取参数
        console.log(this.$route.query.id)
    }
}
</script>
<style lang="scss" scoped>
 .space_release {
        color:#333;
        font-size: 12px;
        .header {
            display: flex;
            align-items: center;
            // justify-content: space-between;
            height:80px;
            border-bottom:1px solid #F1F1F1;
            .el-breadcrumb {
                padding-left: 20px;
            }
        }
        .upload {
            margin-left: 30px;
            .up_distance {
                margin: 25px 0 15px 0;
            }
            .up-litter {
                // border:1px solid red;
                display:flex;
                align-items:center;
                .up-left {
                    display:inline-block;
                    width:106px;
                    .up-left-title {
                        margin-top:20px;
                        text-align:center;
                    }
                }
                .up-notice {
                    padding:0 50px;
                }
            }
        }
        .left-distance {
            margin-right:20px;
            .topic {
                padding: 10px;
            }
        }
        .el-button.is-round {
            width:120px;
            font-size: 12px;
        }
        .up_button {
            width:500px;
            // border:1px solid red;
            padding:10px 0 100px 0;
            display:flex;
            justify-content:space-between;
        }
       
    }
</style>
